echo Start time: %TIME%

set TOOLPATH=C:\web\Closure\closure\bin\build
java -jar %TOOLPATH%\SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/standings/standings_templates.js templates/standings.soy
java -jar %TOOLPATH%\SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/auth/auth_templates.js templates/auth.soy
java -jar %TOOLPATH%\SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/error_templates.js templates/errors.soy
java -jar %TOOLPATH%\SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/status/status_templates.js templates/status.soy
java -jar %TOOLPATH%\SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/raid/raid_templates.js templates/raid.soy
java -jar %TOOLPATH%\SoyToJsSrcCompiler.jar --shouldProvideRequireSoyNamespaces --outputPathFormat dkpoints/tests/tests_templates.js templates/tests.soy

python %TOOLPATH%\closurebuilder.py -i ../../goog/base.js  -i ../../goog/deps.js -i dkpoints/main.js --root=. --root=../../goog -o script --output_file=precompile.js

java -jar %TOOLPATH%\compiler.jar --create_source_map ./dkpoints-map --define goog.dom.ASSUME_STANDARDS_MODE=true --define goog.userAgent.ASSUME_GECKO=true --js ../../goog/deps.js --js precompile.js --compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes --js_output_file=dkpoints-gecko.js --jscomp_off=fileoverviewTags --jscomp_warning=deprecated
java -jar %TOOLPATH%\compiler.jar --define goog.dom.ASSUME_STANDARDS_MODE=true --js ../../goog/deps.js --js precompile.js --compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes --js_output_file=dkpoints.js --jscomp_off=fileoverviewTags --jscomp_warning=deprecated
java -jar %TOOLPATH%\compiler.jar --define goog.dom.ASSUME_STANDARDS_MODE=true --define goog.userAgent.ASSUME_IE=true --js ../../goog/deps.js --js precompile.js --compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes --js_output_file=dkpoints-ie.js --jscomp_off=fileoverviewTags --jscomp_warning=deprecated
java -jar %TOOLPATH%\compiler.jar --define goog.dom.ASSUME_STANDARDS_MODE=true --define goog.userAgent.ASSUME_WEBKIT=true --js ../../goog/deps.js --js precompile.js --compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes --js_output_file=dkpoints-webkit.js --jscomp_off=fileoverviewTags --jscomp_warning=deprecated
java -jar %TOOLPATH%\compiler.jar --define goog.dom.ASSUME_STANDARDS_MODE=true --define goog.userAgent.ASSUME_OPERA=true --js ../../goog/deps.js --js precompile.js --compilation_level=ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes --js_output_file=dkpoints-opera.js --jscomp_off=fileoverviewTags --jscomp_warning=deprecated

echo End time: %TIME%